<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script type="text/javascript" src="../js/vue.js"></script>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
    <title>Document</title>
</head>

<body>
    <div class="container" id="app">
        <!-- <h1 :style="styleObj1">一级标题</h1> -->

        <h1 :style="[styleObj1, styleObj2]">一级标题</h1>

    </div>

    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                styleObj1: {
                    color: 'red',
                    'font-weight': '200'
                },
                styleObj2: {
                    fontStyle: 'italic'
                }
            },
            methods: {}
        });
    </script>
</body>

</html>